package com.example.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.pojo.Order.CreatOrderPojo;
import com.example.demo.pojo.Order.Orders;
import com.example.demo.pojo.Order.PutOrders;
import com.example.demo.pojo.R;
import org.apache.poi.ss.formula.functions.T;

import java.io.Serializable;
import java.util.List;

public interface OrderService extends IService<Orders>, Serializable {
    //multiply表示除数
    R<T> creatOrder(String token, CreatOrderPojo creatOrderPojo);

    R<T> creatOrderNew(String token, CreatOrderPojo creatOrderPojo);

    R<List<PutOrders>> getPutOrderList(String token, Integer id);

    R<List<Orders>> getOrderList(String token, Integer id,String orderStatus, String buyMethod);

    R<T> withdrawOrder(String token, int orderId ,int competitionId, int withdrawNumber , String orderStatus);


}
